﻿@using Zeus.Domain.MySql.Contract;
@using Zeus.Mvc.Infrastructure.Model;
@using Zeus.Biz.MySql.EF.Model;

@model CustomerResponse

@{
    ViewBag.Title = "GetCustomers";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>GetCustomers</h2>

@if (Model.Status == ResponseStatus.SUCCESS)
{
    foreach(Customer customer in Model.ListData)
    {
        <div>
            <h2>@customer.Id</h2>
            <h3>@customer.Name</h3>
            <h3>@customer.Age</h3>
            <hr />
        </div>
    }
}
else
{
    <div>
        Get Customer Response Error!
        <br />
        Exception: @Model.Message
    </div>
}